//
//  connection.h
//  Discover
//
//  Created by GreatranLee on 27/10/14.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface connection : NSObject
//+ (void)networkGetHandlerWith:(NSString *)str block:(void(^)(id result))block;
//
+ (void)networkPostHandlerWith:(NSString *)str bodyStr:(NSString *)bodyStr block:(void(^)(id result))block;

//block定义 如果block相关的数据给别的类使用，就带参数
//如果是给自己用，就带返回值
+ (void)networkWithURL:(NSString *)urlStr completion:(void(^)(id result))block;
@end
